<?php

declare(strict_types=1);

namespace common\enum;

use common\attribute\Description;
use common\trait\Enum;

enum ResultCode: int
{
    use Enum;

    #[Description('请求成功')]
    case SUCCESS = 0;
    #[Description('请求失败')]
    case FAIL = 1;
    #[Description('参数错误')]
    case PARAM_ERROR = 1001;
    #[Description('数据不存在')]
    case DATA_NOT_FOUND = 1002;
    #[Description('账号已被禁用')]
    case USER_DISABLED = 1003;
    #[Description('密码错误')]
    case PASSWORD_ERROR = 1004;
    #[Description('登录成功')]
    case LOGIN_SUCCESS = 1005;
    #[Description('退出登录成功')]
    case LOGOUT_SUCCESS = 1006;
    #[Description('新增成功')]
    case CREATE_SUCCESS = 1007;
    #[Description('编辑成功')]
    case UPDATE_SUCCESS = 1008;
    #[Description('删除成功')]
    case DELETE_SUCCESS = 1009;
}
